import request from '@/utils/request'
const url = 'http://192.168.0.196:8840'
const systemprefix = '/uums'
// 获取全部兼职
export function allData(qwe) {
  return request({
    url: systemprefix + '/SysOrgInfo/treeById?id=' + qwe + '&&status=0',
    method: 'POST',
    data: {
      id: qwe,
      status: 0
    }
  })
}
// 获取当前已被选中的兼职
export function selectedData(id) {
  return request({
    url: systemprefix + '/SysUserPtOrg/selectPtOrgByUser?userId=' + id,
    method: 'POST'
  })
}
// 保存勾选的兼职数据
export function saveData(id) {
  return request({
    url: systemprefix + '/SysUserPtOrg/newPtOrgBybatch',
    method: 'POST',
    data: id
  })
}
